package com.ywjt.pinkelephant.my.adapter;

import android.graphics.Color;
import android.widget.TextView;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ywjt.pinkelephant.R;
import com.ywjt.pinkelephant.my.model.MyMidModel;

import java.util.List;

public class MyMidAdapter extends BaseQuickAdapter<MyMidModel, BaseViewHolder> {

    public MyMidAdapter(@Nullable List<MyMidModel> data) {
        super(R.layout.item_my_mid, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MyMidModel item) {

        helper.setText(R.id.tvTitle,item.getTitle());
helper.setText(R.id.tvMoney1value,item.getMoney1value());
helper.setText(R.id.tvMoney2value,item.getMoney2value());
helper.setText(R.id.tvMoney1Text,item.getMoney1text());
helper.setText(R.id.tvMoney2Text,item.getMoney2text());
    }
}
